solution of equations Reducible to Quadratic Equation